import random
import datetime
i = datetime.datetime.now()
a = 0
b = 0
file = open('乘法%s-%s-%s.txt'%(i.year,i.month,i.day), 'a+')
while a < 100:
        file.write('\n')
        for i in range(0,2):
                a = a + 1
                x = random.randint(1,99)
                y = random.randint(1,99)
                file.write('%s * %s ='%(x,y))
                file.write('               ')